package com.fei.service;

import com.fei.bean.SingerBean;
import com.fei.mapper.SingerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SingerServiceImpl implements SingerService{

    @Autowired
    SingerMapper singerMapper;

    @Override
    public SingerBean selectOneSingerNameAllService(String name) {
        return singerMapper.selectOneSingerNameAll(name);
    }

    @Override
    public SingerBean selectSingerIdAndMusicService(Integer id) {
        return singerMapper.selectSingerIdAndMusic(id);
    }

    @Override
    public Integer selectOneSingerBeanService() {
        return singerMapper.selectOneSingerBean();
    }

    @Override
    public int updatAddSingerFansService(int singer_id) {
        return singerMapper.updatAddSingerFans(singer_id);
    }

    @Override
    public int updatDeleteSingerFansService(int singer_id) {
        return singerMapper.updatDeleteSingerFans(singer_id);
    }


}
